package com.ktmall.ktmalluijava.service;

import com.ktmall.ktmalluijava.pojo.Order;
import com.ktmall.ktmalluijava.utils.Page;
import com.ktmall.ktmalluijava.vo.OrderDetailVO;
import com.ktmall.ktmalluijava.vo.OrderVO;
import org.springframework.stereotype.Service;

@Service
public interface OrderService {

    /**
     * 获取分页对象
     * @param orderSn
     * @param userId
     * @param orderState
     * @return
     */
    Page<OrderVO> getPage(String orderSn,Integer userId,Integer orderState,Integer pageNo,Integer pageSize);

    /**
     * 详情
     * @param id
     * @return
     */
    Order detail(Integer id);

    /**
     * 详情
     * @param order
     * @return
     */
    int update(Order order);

    /**
     * 删除
     * @param id
     * @return
     */
    int delete(Integer... id);

    /**
     * 获取订单详细信息
     * @param orderId
     * @return
     */
    OrderDetailVO orderDetail(Integer orderId);
}
